smntc
an in-memory multimodal graph database
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
Colors.c File Reference
#include <stdlib.h>
#include <limits.h>
#include "errors.h"
#include "Graph.h"
#include "Binary.h"
#include <stdio.h>
+ Include dependency graph for Colors.c:

Go to the source code of this file.

Data Structures

struct  Colors
 

Macros

#define COLOR_CLUSTER_LENGTH   2
 
#define CHANNEL_SOURCES_LENGTH   3
 
#define CHANNEL_CLUSTER_LENGTH   3
 

Functions

struct ColorsColors_construct (unsigned int colorType, struct Binary *binary, struct Graph *graph, int *error)
 
struct ColorsColors_destruct (struct Colors *this)
 
void Colors_initialize (struct Colors *this, int *error)
 
unsigned int Colors_writeColor (struct Colors *this, unsigned char redValue, unsigned char greenValue, unsigned char blueValue, int *error)
 
void Colors_readColor (const struct Colors *this, unsigned int color, unsigned char *redValue, unsigned char *greenValue, unsigned char *blueValue, int *error)
 

Macro Definition Documentation

◆ CHANNEL_CLUSTER_LENGTH

#define CHANNEL_CLUSTER_LENGTH   3

Definition at line 11 of file Colors.c.

◆ CHANNEL_SOURCES_LENGTH

#define CHANNEL_SOURCES_LENGTH   3

Definition at line 10 of file Colors.c.

◆ COLOR_CLUSTER_LENGTH

#define COLOR_CLUSTER_LENGTH   2

Definition at line 9 of file Colors.c.

Function Documentation

◆ Colors_construct()

struct Colors * Colors_construct ( unsigned int  colorType,
struct Binary binary,
struct Graph graph,
int *  error 
)

Definition at line 21 of file Colors.c.

+ Here is the caller graph for this function:

◆ Colors_destruct()

struct Colors * Colors_destruct ( struct Colors this)

Definition at line 45 of file Colors.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Colors_initialize()

void Colors_initialize ( struct Colors this,
int *  error 
)

Definition at line 56 of file Colors.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Colors_readColor()

void Colors_readColor ( const struct Colors this,
unsigned int  color,
unsigned char *  redValue,
unsigned char *  greenValue,
unsigned char *  blueValue,
int *  error 
)

Definition at line 318 of file Colors.c.

+ Here is the call graph for this function:

◆ Colors_writeColor()

unsigned int Colors_writeColor ( struct Colors this,
unsigned char  redValue,
unsigned char  greenValue,
unsigned char  blueValue,
int *  error 
)

Definition at line 146 of file Colors.c.

+ Here is the call graph for this function: