Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Project< Value_Type > Struct Template Reference

Project with profit and dependencies. More...

#include <net_apps.H>

Collaboration diagram for Aleph::Project< Value_Type >:
[legend]

Public Member Functions

 Project (size_t id_, Value_Type profit_, const std::vector< size_t > &prereqs={}, const std::string &name_="")
 

Public Attributes

size_t id
 Unique project ID.
 
Value_Type profit
 Profit (positive) or cost (negative)
 
std::vector< size_tprerequisites
 IDs of prerequisite projects.
 
std::string name
 Optional name.
 

Detailed Description

template<typename Value_Type>
struct Aleph::Project< Value_Type >

Project with profit and dependencies.

Definition at line 397 of file net_apps.H.

Constructor & Destructor Documentation

◆ Project()

template<typename Value_Type >
Aleph::Project< Value_Type >::Project ( size_t  id_,
Value_Type  profit_,
const std::vector< size_t > &  prereqs = {},
const std::string &  name_ = "" 
)
inline

Definition at line 404 of file net_apps.H.

Member Data Documentation

◆ id

template<typename Value_Type >
size_t Aleph::Project< Value_Type >::id

Unique project ID.

Definition at line 399 of file net_apps.H.

◆ name

template<typename Value_Type >
std::string Aleph::Project< Value_Type >::name

Optional name.

Definition at line 402 of file net_apps.H.

◆ prerequisites

template<typename Value_Type >
std::vector<size_t> Aleph::Project< Value_Type >::prerequisites

IDs of prerequisite projects.

Definition at line 401 of file net_apps.H.

◆ profit

template<typename Value_Type >
Value_Type Aleph::Project< Value_Type >::profit

Profit (positive) or cost (negative)

Definition at line 400 of file net_apps.H.


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