- Main Page
- Classes
- Directories
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# TclListVar Class Reference

Represens shell variable of list type. More...

`#include <tcl_listvar.h>`

Inheritance diagram for TclListVar:

List of all members.

## Public Member Functions

const char * | getType () const
| Return type of class.
| TclListVar (Ptr< TclInterp > &interp)
void | push_back (const string &value)
| Add new element at the end of the list.
void | remove (int index)
| Remove element at index index.
void | clear ()
| Clear all elements.
const_iterator | begin () const
| Return iterator to beginning of the list.
const_iterator | end () const
| Return iterator to end of the list.
int | size () const
| Returns size of list.
const string & | getText () const
| Return list representation as string.

## Detailed Description

Represens shell variable of list type.

Date:
  01-11-2006

Author:
  Ondrej Svejdar

Todo:

Bug:

## Constructor & Destructor Documentation

TclListVar::TclListVar | ( | Ptr< TclInterp > & | interp | ) |

Parameters:

  | interp | interpret

## Member Function Documentation

const string & TclListVar::getText | ( |  | ) | const

| Return list representation as string. For empty list returns "{}", for list with element "a" returns {a}, for list with element "a" and "b" {a b} and so on.

Returns:
  list representation as string

const char * TclListVar::getType | ( |  | ) | const`[virtual]`

| Return type of class.

Returns:
  type of class

Reimplemented from TclVar.

void TclListVar::push_back | ( | const string & | value | ) |

| Add new element at the end of the list.

Parameters:

  | value | string to add

void TclListVar::remove | ( | int | index | ) |

| Remove element at index index.

Parameters:

  | index |

int TclListVar::size | ( |  | ) | const

| Returns size of list.

Returns:
  size of list

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

- H:/projs/dotNET/eda/src/tk/vars/tcl_listvar.h
- H:/projs/dotNET/eda/src/tk/vars/tcl_listvar.cpp