<<< Stack primitive     Lambda Home     Constant scalar >>>

Common Text Transformation Library http://cttl.sourceforge.net/

Scalar interface


  1. scalar_primitive.cpp
  2. Scalar instance control
  3. scalar_make_reference.cpp

Member function Description
  • 
    void push( value_type const& );
    
    
  • Adds data element.
    Scalar primitives simply assign new value to the encapsulated data member.

  • 
    void pop();
    
    
  • Removes data element.
    Scalar primitives ignore pop() calls.

  • 
    value_type const& top() const;
    
    
  • Provides constant access to the encapsulated data.

  • 
    value_type& top();
    
    
  • Provides mutable access to the encapsulated data.

  • 
    size_t size() const;
    
    
  • Returns the stack size of encapsulated value.
    Scalar primitives always return 1.

Keywords: scalar_primitive.cpp


Scalar instance control


Member function Description
  • 
    std::stack< value_type > const* stack_ptr() const;
    
    
  • Provides constant access to the encapsulated stack. Scalar primitive returns a NULL pointer.

  • 
    std::stack< value_type >* stack_ptr();
    
    
  • Provides mutable access to the encapsulated stack. Scalar primitive returns a NULL pointer.

  • 
    reference_T make_reference() const;
    
    
  • Returns a copy of the reference-based primitive for the existing lambda primitive.

Keywords: scalar_make_reference.cpp, make_reference


Copyright © 1997-2009 Igor Kholodov mailto:cttl@users.sourceforge.net.

Permission to copy and distribute this document is granted provided this copyright notice appears in all copies. This document is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose.


 

 

<<< Stack primitive     Lambda Home     Constant scalar >>>