Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT > Class Template Reference

#include <cpp_lex_token.hpp>

Public Types

typedef StringTypeT string_type
 
typedef PositionT position_type
 

Public Member Functions

 token_data ()
 
 token_data (int)
 
 token_data (token_id id_, string_type const &value_, position_type const &pos_)
 
 token_data (token_data const &rhs)
 
 ~token_data ()
 
std::size_t addref ()
 
std::size_t release ()
 
std::size_t get_refcnt () const
 
 operator token_id () const
 
string_type const & get_value () const
 
position_type const & get_position () const
 
void set_token_id (token_id id_)
 
void set_value (string_type const &value_)
 
void set_position (position_type const &pos_)
 
void init (token_id id_, string_type const &value_, position_type const &pos_)
 
void init (token_data const &rhs)
 

Static Public Member Functions

static void * operator new (std::size_t size)
 
static void operator delete (void *p, std::size_t size)
 

Friends

bool operator== (token_data const &lhs, token_data const &rhs)
 

Member Typedef Documentation

template<typename StringTypeT, typename PositionT>
typedef PositionT boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::position_type
template<typename StringTypeT, typename PositionT>
typedef StringTypeT boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::string_type

Constructor & Destructor Documentation

template<typename StringTypeT, typename PositionT>
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::token_data ( )
inline
template<typename StringTypeT, typename PositionT>
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::token_data ( int  )
inlineexplicit
template<typename StringTypeT, typename PositionT>
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::token_data ( token_id  id_,
string_type const &  value_,
position_type const &  pos_ 
)
inline
template<typename StringTypeT, typename PositionT>
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::token_data ( token_data< StringTypeT, PositionT > const &  rhs)
inline
template<typename StringTypeT, typename PositionT>
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::~token_data ( )
inline

Member Function Documentation

template<typename StringTypeT, typename PositionT>
std::size_t boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::addref ( )
inline
template<typename StringTypeT, typename PositionT>
position_type const& boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::get_position ( ) const
inline
template<typename StringTypeT, typename PositionT>
std::size_t boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::get_refcnt ( ) const
inline
template<typename StringTypeT, typename PositionT>
string_type const& boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::get_value ( ) const
inline
template<typename StringTypeT, typename PositionT>
void boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::init ( token_id  id_,
string_type const &  value_,
position_type const &  pos_ 
)
inline

References BOOST_ASSERT.

template<typename StringTypeT, typename PositionT>
void boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::init ( token_data< StringTypeT, PositionT > const &  rhs)
inline

References BOOST_ASSERT.

template<typename StringTypeT , typename PositionT >
void boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::operator delete ( void *  p,
std::size_t  size 
)
inlinestatic

References BOOST_ASSERT, and boost::size().

template<typename StringTypeT , typename PositionT >
void * boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::operator new ( std::size_t  size)
inlinestatic
template<typename StringTypeT, typename PositionT>
boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::operator token_id ( ) const
inline
template<typename StringTypeT, typename PositionT>
std::size_t boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::release ( )
inline
template<typename StringTypeT, typename PositionT>
void boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::set_position ( position_type const &  pos_)
inline
template<typename StringTypeT, typename PositionT>
void boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::set_token_id ( token_id  id_)
inline
template<typename StringTypeT, typename PositionT>
void boost::wave::cpplexer::impl::token_data< StringTypeT, PositionT >::set_value ( string_type const &  value_)
inline

Friends And Related Function Documentation

template<typename StringTypeT, typename PositionT>
bool operator== ( token_data< StringTypeT, PositionT > const &  lhs,
token_data< StringTypeT, PositionT > const &  rhs 
)
friend

The documentation for this class was generated from the following file: