namespace antlr3 { template RecognizerSharedState::RecognizerSharedState() { m_exception = NULL; m_sizeHint = 0; m_error = false; m_errorRecovery = false; m_failed = false; m_token_present = false; m_lastErrorIndex = 0; m_errorCount = 0; m_backtracking = false; m_ruleMemo = NULL; m_tokenNames = NULL; m_tokSource = NULL; m_channel = 0; m_type = 0; m_tokenStartLine = 0; m_tokenStartCharPositionInLine = 0; m_tokenStartCharIndex = 0; m_treeAdaptor = NULL; } template ANTLR_INLINE typename RecognizerSharedState::FollowingType& RecognizerSharedState::get_following() { return m_following; } template ANTLR_INLINE ANTLR_UINT32 RecognizerSharedState::get_sizeHint() const { return m_sizeHint; } template ANTLR_INLINE bool RecognizerSharedState::get_error() const { return m_error; } template ANTLR_INLINE typename RecognizerSharedState::ExceptionBaseType* RecognizerSharedState::get_exception() const { return m_exception; } template ANTLR_INLINE bool RecognizerSharedState::get_errorRecovery() const { return m_errorRecovery; } template ANTLR_INLINE bool RecognizerSharedState::get_failed() const { return m_failed; } template ANTLR_INLINE bool RecognizerSharedState::get_token_present() const { return m_token_present; } template ANTLR_INLINE ANTLR_MARKER RecognizerSharedState::get_lastErrorIndex() const { return m_lastErrorIndex; } template ANTLR_INLINE ANTLR_UINT32 RecognizerSharedState::get_errorCount() const { return m_errorCount; } template ANTLR_INLINE ANTLR_INT32 RecognizerSharedState::get_backtracking() const { return m_backtracking; } template ANTLR_INLINE typename RecognizerSharedState::RuleMemoType* RecognizerSharedState::get_ruleMemo() const { return m_ruleMemo; } template ANTLR_INLINE ANTLR_UINT8** RecognizerSharedState::get_tokenNames() const { return m_tokenNames; } template ANTLR_INLINE ANTLR_UINT8* RecognizerSharedState::get_tokenName( ANTLR_UINT32 i ) const { return m_tokenNames[i]; } template ANTLR_INLINE typename RecognizerSharedState::CommonTokenType* RecognizerSharedState::get_token() { return &m_token; } template ANTLR_INLINE typename RecognizerSharedState::TokenSourceType* RecognizerSharedState::get_tokSource() const { return m_tokSource; } template ANTLR_INLINE ANTLR_UINT32& RecognizerSharedState::get_channel() { return m_channel; } template ANTLR_INLINE ANTLR_UINT32 RecognizerSharedState::get_type() const { return m_type; } template ANTLR_INLINE ANTLR_INT32 RecognizerSharedState::get_tokenStartLine() const { return m_tokenStartLine; } template ANTLR_INLINE ANTLR_INT32 RecognizerSharedState::get_tokenStartCharPositionInLine() const { return m_tokenStartCharPositionInLine; } template ANTLR_INLINE ANTLR_MARKER RecognizerSharedState::get_tokenStartCharIndex() const { return m_tokenStartCharIndex; } template ANTLR_INLINE typename RecognizerSharedState::StringType& RecognizerSharedState::get_text() { return m_text; } template ANTLR_INLINE typename RecognizerSharedState::StreamsType& RecognizerSharedState::get_streams() { return m_streams; } template ANTLR_INLINE typename RecognizerSharedState::TreeAdaptorType* RecognizerSharedState::get_treeAdaptor() const { return m_treeAdaptor; } template ANTLR_INLINE void RecognizerSharedState::set_exception( ExceptionBaseType* exception ) { m_exception = exception; } template ANTLR_INLINE void RecognizerSharedState::set_following( const FollowingType& following ) { m_following = following; } template ANTLR_INLINE void RecognizerSharedState::set_sizeHint( ANTLR_UINT32 sizeHint ) { m_sizeHint = sizeHint; } template ANTLR_INLINE void RecognizerSharedState::set_error( bool error ) { m_error = error; } template ANTLR_INLINE void RecognizerSharedState::set_errorRecovery( bool errorRecovery ) { m_errorRecovery = errorRecovery; } template ANTLR_INLINE void RecognizerSharedState::set_failed( bool failed ) { m_failed = failed; } template ANTLR_INLINE void RecognizerSharedState::set_token_present(bool token_present) { m_token_present = token_present; } template ANTLR_INLINE void RecognizerSharedState::set_lastErrorIndex( ANTLR_MARKER lastErrorIndex ) { m_lastErrorIndex = lastErrorIndex; } template ANTLR_INLINE void RecognizerSharedState::set_errorCount( ANTLR_UINT32 errorCount ) { m_errorCount = errorCount; } template ANTLR_INLINE void RecognizerSharedState::set_backtracking( ANTLR_INT32 backtracking ) { m_backtracking = backtracking; } template ANTLR_INLINE void RecognizerSharedState::set_ruleMemo( RuleMemoType* ruleMemo ) { m_ruleMemo = ruleMemo; } template ANTLR_INLINE void RecognizerSharedState::set_tokenNames( ANTLR_UINT8** tokenNames ) { m_tokenNames = tokenNames; } template ANTLR_INLINE void RecognizerSharedState::set_tokSource( TokenSourceType* tokSource ) { m_tokSource = tokSource; } template ANTLR_INLINE void RecognizerSharedState::set_channel( ANTLR_UINT32 channel ) { m_channel = channel; } template ANTLR_INLINE void RecognizerSharedState::set_token(const CommonTokenType* tok) { this->set_token_present( tok != NULL ); if( tok != NULL ) m_token = *tok; } template ANTLR_INLINE void RecognizerSharedState::set_type( ANTLR_UINT32 type ) { m_type = type; } template ANTLR_INLINE void RecognizerSharedState::set_tokenStartLine( ANTLR_INT32 tokenStartLine ) { m_tokenStartLine = tokenStartLine; } template ANTLR_INLINE void RecognizerSharedState::set_tokenStartCharPositionInLine( ANTLR_INT32 tokenStartCharPositionInLine ) { m_tokenStartCharPositionInLine = tokenStartCharPositionInLine; } template ANTLR_INLINE void RecognizerSharedState::set_tokenStartCharIndex( ANTLR_MARKER tokenStartCharIndex ) { m_tokenStartCharIndex = tokenStartCharIndex; } template ANTLR_INLINE void RecognizerSharedState::set_text( const StringType& text ) { m_text = text; } template ANTLR_INLINE void RecognizerSharedState::set_streams( const InputStreamsType& streams ) { m_streams = streams; } template ANTLR_INLINE void RecognizerSharedState::set_treeAdaptor( TreeAdaptorType* adaptor ) { m_treeAdaptor = adaptor; } template ANTLR_INLINE void RecognizerSharedState::inc_errorCount() { ++m_errorCount; } template ANTLR_INLINE void RecognizerSharedState::inc_backtracking() { ++m_backtracking; } template ANTLR_INLINE void RecognizerSharedState::dec_backtracking() { --m_backtracking; } }