Templates -- Meow  2.0.-1
A C++ template contains kinds of interesting classes and functions
meow::Factory Class Reference

A class which contains input elements, output elements and an operation. More...

#include "factory.h"

Inheritance diagram for meow::Factory:
meow::Object

Public Member Functions

 Factory (Pointer< Operation const > const &arg_oper, Pointer< Pointer< Object const >> const &arg_inputs, Pointer< Pointer< Object >> const &arg_outputs, bool arg_check_before_update)
 Constructor. More...
 
State Update () const
 Updates the output elements. More...
 
bool HasRedo () const
 Returns whether the output elements have been re-generated by running the operation again. More...
 
Pointer< Operation const > operation () const
 Gets the operation. More...
 
Pointer< Pointer< Object > > inputs () const
 Gets the array of the input elements. More...
 
Pointer< Pointer< Object const > > outputs () const
 Gets the array of the output elements. More...
 
ObjectCopy () const
 Creates a copy of itself and return the pointer to it. More...
 
ObjectCopyFrom (Object const *another_factory)
 Copies data from another object. More...
 
bool Equals (Object const *another_factory)
 
- Public Member Functions inherited from meow::Object
virtual ~Object ()
 Virtual destructor. More...
 
virtual bool Equals (Object const *ptr) const
 Returns whether it equals to another object or not. More...
 
Objectoperator= (Object const &b)
 Disable the copy operator. More...
 

Additional Inherited Members

- Protected Member Functions inherited from meow::Object
 Object ()
 A protected constructor to prevent developers create an instance of Object directly. More...
 
 Object (Object const &b)
 Disable the copy operation. More...
 

Detailed Description

A class which contains input elements, output elements and an operation.

Definition at line 302 of file factory.h.

Constructor & Destructor Documentation

meow::Factory::Factory ( Pointer< Operation const > const &  arg_oper,
Pointer< Pointer< Object const >> const &  arg_inputs,
Pointer< Pointer< Object >> const &  arg_outputs,
bool  arg_check_before_update 
)
inline

Constructor.

Definition at line 312 of file factory.h.

Member Function Documentation

Object* meow::Factory::Copy ( ) const
inlinevirtual

Creates a copy of itself and return the pointer to it.

Reimplemented from meow::Object.

Definition at line 363 of file factory.h.

Object* meow::Factory::CopyFrom ( Object const *  ptr)
inlinevirtual

Copies data from another object.

Parameters
[in]ptrPoints to another object.

Reimplemented from meow::Object.

Definition at line 367 of file factory.h.

bool meow::Factory::Equals ( Object const *  another_factory)
inline

Definition at line 371 of file factory.h.

bool meow::Factory::HasRedo ( ) const
inline

Returns whether the output elements have been re-generated by running the operation again.

Definition at line 338 of file factory.h.

Pointer<Pointer<Object> > meow::Factory::inputs ( ) const
inline

Gets the array of the input elements.

Definition at line 352 of file factory.h.

Pointer<Operation const> meow::Factory::operation ( ) const
inline

Gets the operation.

Definition at line 345 of file factory.h.

Pointer<Pointer<Object const> > meow::Factory::outputs ( ) const
inline

Gets the array of the output elements.

Definition at line 359 of file factory.h.

State meow::Factory::Update ( ) const
inline

Updates the output elements.

Definition at line 330 of file factory.h.


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