C++ features by examples

Public Member Functions

Builderadd (int i)
 
Builderoperator<< (int i)
 
Interfacecreate ()
 

Public Attributes

int data = 0
 

Detailed Description

Definition at line 256 of file patterns.cpp.

Member Function Documentation

◆ add()

Builder & Builder::add ( int  i)
inline

Definition at line 259 of file patterns.cpp.

259 {
260 data += i;
261 return *this;
262 }
int data
Definition: patterns.cpp:258
Here is the caller graph for this function:

◆ create()

Interface & Builder::create ( )
inline

Definition at line 266 of file patterns.cpp.

267 {
268 return *new Sample_product(data);
269 }

◆ operator<<()

Builder & Builder::operator<< ( int  i)
inline

Definition at line 264 of file patterns.cpp.

264{ return add(i); }
Builder & add(int i)
Definition: patterns.cpp:259
Here is the call graph for this function:

Member Data Documentation

◆ data

int Builder::data = 0

Definition at line 258 of file patterns.cpp.


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