FieldAux Namespace Reference


Functions

void throwNotAllowed (const char *what, const rutz::file_pos &pos)
template<class C, class F>
C & cast (F &p)
 A drop-in replacement for dynamic_cast for FieldContainers.
template<class C, class F>
C & cast (F &p)
 A drop-in replacement for dynamic_cast for FieldContainers.


Function Documentation

template<class C, class F>
C& FieldAux::cast ( F &  p  )  [inline]

A drop-in replacement for dynamic_cast for FieldContainers.

The difference from dynamic_cast is that this cast function allows us to "cast" to a FieldContainer's subobject as returned by its child() function.

Definition at line 657 of file fields.h.

References SRC_POS, and rutz::throw_bad_cast().

Referenced by rutz::full_object_cast().

template<class C, class F>
C& FieldAux::cast ( F &  p  )  [inline]

A drop-in replacement for dynamic_cast for FieldContainers.

The difference from dynamic_cast is that this cast function allows us to "cast" to a FieldContainer's subobject as returned by its child() function.

Definition at line 657 of file fields.h.

References SRC_POS, and rutz::throw_bad_cast().

Referenced by rutz::full_object_cast().


The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Mon Feb 11 05:08:38 2008 by Doxygen version 1.5.2.