Prev Next

@(@\newcommand{\B}[1]{ {\bf #1} } \newcommand{\R}[1]{ {\rm #1} }@)@
Swig Example: C++ Class

Prototypes

class normal_class
{    private:
          int value_;
     public:
          // normal_class()
          normal_class(void);
          // normal_class(value)
          normal_class(int value);
          // destructor
          ~normal_class(void);
          // value()
          int value(void) const;
          // additon
          normal_class operator+(const normal_class& right) const;
          // equality
          bool operator==(const normal_class& right) const;
};

normal_class()
This creates a normal_class object with no further specifications.

normal_class(value)
This creates a normal_class object that has the specified value .

value()
Returns the value corresponding to this object.

addition
The return value is the sum of the this object and the object to its right.

equality
True is returned, if the value for this object is equal to the value for the object to its right. Otherwise false is returned.

Contents
swig_xam_normal_class.cppSwig Example: C++ Class Implementation

Input File: swig_xam/swig_xam.hpp