ChaiScript
Public Member Functions | List of all members
ChaiScript_Language::Range Class Reference

A concept in ChaiScript that is implemented by string, Vector and Map. More...

#include <chaiscript_prelude_docs.hpp>

Public Member Functions

Object back ()
 Returns the last item of the range.
 
bool empty () const
 Returns true if the front and back pointers have passed each other, if no items are left in the Range.
 
Object front ()
 Returns the first item of the range.
 
void pop_back ()
 Moves the back pointer back one. More...
 
void pop_front ()
 Moves the front pointer forward one. More...
 

Detailed Description

A concept in ChaiScript that is implemented by string, Vector and Map.

It provides easy iteration over the elements in a container.

Implemented by the template chaiscript::bootstrap::standard_library::Bidir_Range

See also
Const_Range

Member Function Documentation

§ pop_back()

void ChaiScript_Language::Range::pop_back ( )

Moves the back pointer back one.

Postcondition
back() returns the element at back() - 1;

§ pop_front()

void ChaiScript_Language::Range::pop_front ( )

Moves the front pointer forward one.

Postcondition
front() returns the element at front() + 1;

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