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::lex_token< PositionT > Class Template Reference

#include <cpp_lex_token.hpp>

Public Types

typedef BOOST_WAVE_STRINGTYPE string_type
 
typedef PositionT position_type
 

Public Member Functions

 lex_token ()
 
 lex_token (int)
 
 lex_token (lex_token const &rhs)
 
 lex_token (token_id id_, string_type const &value_, PositionT const &pos_)
 
 ~lex_token ()
 
lex_tokenoperator= (lex_token const &rhs)
 
 operator token_id () const
 
string_type const & get_value () const
 
position_type const & get_position () const
 
bool is_eoi () const
 
bool is_valid () const
 
void set_token_id (token_id id_)
 
void set_value (string_type const &value_)
 
void set_position (position_type const &pos_)
 

Friends

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

Member Typedef Documentation

template<typename PositionT>
typedef PositionT boost::wave::cpplexer::lex_token< PositionT >::position_type
template<typename PositionT>
typedef BOOST_WAVE_STRINGTYPE boost::wave::cpplexer::lex_token< PositionT >::string_type

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename PositionT>
position_type const& boost::wave::cpplexer::lex_token< PositionT >::get_position ( ) const
inline
template<typename PositionT>
string_type const& boost::wave::cpplexer::lex_token< PositionT >::get_value ( ) const
inline
template<typename PositionT>
bool boost::wave::cpplexer::lex_token< PositionT >::is_eoi ( ) const
inline
template<typename PositionT>
bool boost::wave::cpplexer::lex_token< PositionT >::is_valid ( ) const
inline
template<typename PositionT>
boost::wave::cpplexer::lex_token< PositionT >::operator token_id ( ) const
inline
template<typename PositionT>
lex_token& boost::wave::cpplexer::lex_token< PositionT >::operator= ( lex_token< PositionT > const &  rhs)
inline
template<typename PositionT>
void boost::wave::cpplexer::lex_token< PositionT >::set_position ( position_type const &  pos_)
inline
template<typename PositionT>
void boost::wave::cpplexer::lex_token< PositionT >::set_token_id ( token_id  id_)
inline
template<typename PositionT>
void boost::wave::cpplexer::lex_token< PositionT >::set_value ( string_type const &  value_)
inline

Friends And Related Function Documentation

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

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