Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
whitebox_rep< T > Class Template Reference

#include <blackbox.hpp>

Inheritance diagram for whitebox_rep< T >:
Inheritance graph
[legend]
Collaboration diagram for whitebox_rep< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 whitebox_rep (const T &data2)
 ~whitebox_rep ()
int get_type ()
bool equal (blackbox_rep *ptr)
tm_ostreamdisplay (tm_ostream &out)

Public Attributes

T data
int ref_count

Detailed Description

template<class T>
class whitebox_rep< T >

Definition at line 32 of file blackbox.hpp.


Constructor & Destructor Documentation

template<class T >
whitebox_rep< T >::whitebox_rep ( const T data2) [inline]

Definition at line 36 of file blackbox.hpp.

: data (data2) {}
template<class T >
whitebox_rep< T >::~whitebox_rep ( ) [inline]

Definition at line 37 of file blackbox.hpp.

{}

Member Function Documentation

template<class T >
tm_ostream& whitebox_rep< T >::display ( tm_ostream out) [inline, virtual]

Implements blackbox_rep.

Definition at line 42 of file blackbox.hpp.

{ return out << data; }
template<class T >
bool whitebox_rep< T >::equal ( blackbox_rep ptr) [inline, virtual]

Implements blackbox_rep.

Definition at line 39 of file blackbox.hpp.

                                        {
    return ptr != NULL && ptr->get_type () == type_helper<T>::id &&
           ((whitebox_rep<T>*) ptr)->data == data; }

Here is the call graph for this function:

template<class T >
int whitebox_rep< T >::get_type ( ) [inline, virtual]

Implements blackbox_rep.

Definition at line 38 of file blackbox.hpp.

{ return type_helper<T>::id; }

Member Data Documentation

template<class T >
T whitebox_rep< T >::data

Definition at line 34 of file blackbox.hpp.

int abstract_struct::ref_count [inherited]

Definition at line 142 of file basic.hpp.


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