Functions: minor api improvements

This commit is contained in:
Jacques Lucke 2020-07-12 10:01:37 +02:00
parent ee5c2f6ead
commit 404486e66c
3 changed files with 12 additions and 1 deletions

View File

@ -80,6 +80,11 @@ class MFNetworkTreeMap {
return network_;
}
fn::MFNetwork &network()
{
return network_;
}
void add(const DSocket &dsocket, fn::MFSocket &socket)
{
BLI_assert(dsocket.is_input() == socket.is_input());

View File

@ -70,10 +70,11 @@
#include "BLI_index_mask.hh"
#include "BLI_math_base.h"
#include "BLI_string_ref.hh"
#include "BLI_utility_mixins.hh"
namespace blender::fn {
class CPPType {
class CPPType : NonCopyable, NonMovable {
public:
using ConstructDefaultF = void (*)(void *ptr);
using ConstructDefaultNF = void (*)(void *ptr, uint n);

View File

@ -339,6 +339,11 @@ class GVSpan : public VSpanBase<void> {
return ref;
}
static GVSpan FromSingleWithMaxSize(const CPPType &type, const void *value)
{
return GVSpan::FromSingle(type, value, UINT32_MAX);
}
static GVSpan FromFullPointerArray(const CPPType &type, const void *const *values, uint size)
{
GVSpan ref;