Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | Private Types | List of all members
cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal > Class Template Reference

Averages the values of the underlying 3 * 3 neighbors with custom weight. More...

#include <ProtIntGen.h>

Inheritance diagram for cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >:
Inheritance graph
[legend]
Collaboration diagram for cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >:
Collaboration graph
[legend]

Public Member Functions

 cProtIntGenWeightAvg (Underlying a_Underlying)
 
virtual void GetInts (int a_MinX, int a_MinZ, size_t a_SizeX, size_t a_SizeZ, int *a_Values) override
 Generates the array of specified size into a_Values, based on given min coords. More...
 
- Public Member Functions inherited from cProtIntGen
virtual ~cProtIntGen ()
 Force a virtual destructor in all descendants. More...
 

Protected Attributes

Underlying m_Underlying
 

Private Types

typedef cProtIntGen super
 

Additional Inherited Members

- Public Types inherited from cProtIntGen
typedef std::shared_ptr< cProtIntGenUnderlying
 Type of the generic interface used for storing links to the underlying generators. More...
 
- Static Protected Attributes inherited from cProtIntGen
static const int m_BufferSize = PROT_INT_BUFFER_SIZE
 Maximum size of the generated area. More...
 

Detailed Description

template<int WeightCenter, int WeightCardinal, int WeightDiagonal>
class cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >

Averages the values of the underlying 3 * 3 neighbors with custom weight.

Definition at line 426 of file ProtIntGen.h.

Member Typedef Documentation

template<int WeightCenter, int WeightCardinal, int WeightDiagonal>
typedef cProtIntGen cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >::super
private

Definition at line 429 of file ProtIntGen.h.

Constructor & Destructor Documentation

template<int WeightCenter, int WeightCardinal, int WeightDiagonal>
cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >::cProtIntGenWeightAvg ( Underlying  a_Underlying)
inline

Definition at line 432 of file ProtIntGen.h.

Member Function Documentation

template<int WeightCenter, int WeightCardinal, int WeightDiagonal>
virtual void cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >::GetInts ( int  a_MinX,
int  a_MinZ,
size_t  a_SizeX,
size_t  a_SizeZ,
int *  a_Values 
)
inlineoverridevirtual

Generates the array of specified size into a_Values, based on given min coords.

Implements cProtIntGen.

Definition at line 438 of file ProtIntGen.h.

Member Data Documentation

template<int WeightCenter, int WeightCardinal, int WeightDiagonal>
Underlying cProtIntGenWeightAvg< WeightCenter, WeightCardinal, WeightDiagonal >::m_Underlying
protected

Definition at line 465 of file ProtIntGen.h.


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